﻿.newsContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 1em 0;
    padding: 0;
    width: 100%;
}

.newsContainer.list{
    display: block;
}

.newsContainerPrimary {
    width: 70%;
    display: flex;
}

.newsContainerSecondary {
    width: 30%;
    font-size: .75em;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.newsBlock {
    display: flex;
    position: relative;
    margin: .5em 0;
    /* min-height: 7em; */
    height: 100%;
}

.newsContainerPrimary .newsBlock {
    min-height: 23em;
    flex: 1 0 30%;
    margin: 0;
    margin-right: 1em;
}

.newsContainerSecondary .newsBlock:first-child {
    margin-top: 0;
}

.newsContainerSecondary .newsBlock:last-child {
    margin-bottom: 0;
}

a.articleLink {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.05);
    transition: transform .2s;
}

.newsContainerSecondary a.articleLink {
    align-items: stretch;
}

a.articleLink:hover,
a.articleLink:focus {
    box-shadow: 0px 0px 0px 0px rgb(0, 0, 0, .05);
    transform: translateX(5px) translateY(5px);
}


/* a.articleLink:hover .newsText,
a.articleLink:active .newsText,
a.articleLink:focus .newsText {
    color: #fff;
}
 */

a.articleLink:hover .titleBox,
a.articleLink:focus .titleBox {
    background: rgba(125, 39, 110, .85);
}

.newsContainerSecondary a.articleLink:hover .titleBox,
.newsContainerSecondary a.articleLink:focus .titleBox {
    background: #7D276F;
}

.newsImage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.newsContainerSecondary .newsImage {
    position: relative;
    width: 7em;
    min-height: 7em;
    align-self: stretch;
}

.titleBox {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    padding: 0 .5em;
    background: rgba(39, 129, 131, .8);
    transition: background .2s;
}

.newsContainerSecondary .titleBox {
    background: #258184;
}

.newsText {
    color: #fff;
    font-size: 1.5em;
    font-family: 'Roboto Slab', serif;
    height: inherit;
    padding: .5em 0;
}

@media screen and (max-width: 1280px)and (min-width: 900px) {
    .newsContainerSecondary .newsImage {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    .newsText {
        font-size: 1.25em;
    }
}

@media screen and (max-width: 900px) {
    .newsContainer,
    .newsContainerPrimary,
    .newsContainerSecondary,
    .newsBlock {
        display: block;
        width: 100%;
        font-size: 1em;
    }
    .newsContainerPrimary .newsBlock,
    .newsContainerSecondary .newsBlock {
        min-height: auto;
        margin-right: 0;
        margin: .5em 0;
    }
    a.articleLink {
        align-items: stretch;
    }
    .newsImage {
        position: relative;
        width: 7em;
        min-height: 7em;
    }
    .titleBox {
        background: #258184;
    }
}

@media screen and (max-width: 320px) {
    .newsImage {
        display: none;
    }
}